put empty into card field fieldcount of card id 11820
put card field id 2 of card id 10033 into DateA
convert DateA to dateItems
if card field id 2 < item 1 of DateA
then
answer "Progressed year cannot be before birth year!"
exit mouseUp
end if
show card field id 8
put card field id 2 - item 1 of dateA into progressdif
if card field id 5 is empty
then put card field id 2 & ", centering on the month of birth." into card field id 2 of card id 11820
if card field id 5 > 0 and hilite of card button id 6 is true
then put card field id 2 & ", centering on "& card field id 5 && "month(s) after birthday." into card field id 2 of card id 11820
if card field id 5 > 0 and hilite of card button id 7 is true
then put card field id 2 & ", centering on "& card field id 5 && "month(s) before birthday." into card field id 2 of card id 11820
convert DateA to abbreviated date
if card field id 5 > 0 and hilite of card button id 6 is true
then add (card field id 5)/12 to progressdif
if card field id 5 > 0 and hilite of card button id 7 is true
then subtract (card field id 5)/12 from progressdif
put card field id 1 of card id 10033 into card field id 1 of card id 11820
put card field id 10 of card id 10033 into card field id 3
repeat with x = 1 to 12
put item 1 of line x of card field id 3 & "," & item 2 of line x of card field id 3 + progressdif into line x of card field id 4
if item 2 of line x of card field id 4 > 360
then put item 2 of line x of card field id 4 - 360 into item 2 of line x of card field id 4
end repeat
put item 2 of line 11 of card field id 3 into ascendant
if item 2 of line 1 of card field id 4 < ascendant
then put item 2 of line 1 of card field id 4 + 360 - ascendant into sunhouse
else put item 2 of line 1 of card field id 4 - ascendant into sunhouse
if item 2 of line 2 of card field id 4 < ascendant
then put item 2 of line 2 of card field id 4 + 360 - ascendant into moonhouse
else put item 2 of line 2 of card field id 4 - ascendant into moonhouse
if item 2 of line 3 of card field id 4 < ascendant
then put item 2 of line 3 of card field id 4 + 360 - ascendant into mercuryhouse
else put item 2 of line 3 of card field id 4 - ascendant into mercuryhouse
if item 2 of line 4 of card field id 4 < ascendant
then put item 2 of line 4 of card field id 4 + 360 - ascendant into venushouse
else put item 2 of line 4 of card field id 4 - ascendant into venushouse
if item 2 of line 5 of card field id 4 < ascendant
then put item 2 of line 5 of card field id 4 + 360 - ascendant into marshouse
else put item 2 of line 5 of card field id 4 - ascendant into marshouse
if item 2 of line 6 of card field id 4 < ascendant
then put item 2 of line 6 of card field id 4 + 360 - ascendant into jupiterhouse
else put item 2 of line 6 of card field id 4 - ascendant into jupiterhouse
if item 2 of line 7 of card field id 4 < ascendant
then put item 2 of line 7 of card field id 4 + 360 - ascendant into saturnhouse
else put item 2 of line 7 of card field id 4 - ascendant into saturnhouse
if item 2 of line 8 of card field id 4 < ascendant
then put item 2 of line 8 of card field id 4 + 360 - ascendant into uranushouse
else put item 2 of line 8 of card field id 4 - ascendant into uranushouse
if item 2 of line 9 of card field id 4 < ascendant
then put item 2 of line 9 of card field id 4 + 360 - ascendant into neptunehouse
else put item 2 of line 9 of card field id 4 - ascendant into neptunehouse
if item 2 of line 10 of card field id 4 < ascendant
then put item 2 of line 10 of card field id 4 + 360 - ascendant into plutohouse
else put item 2 of line 10 of card field id 4 - ascendant into plutohouse
put (trunc(sunhouse / 30) + 1) into sunhouse
put (trunc(moonhouse / 30) + 1) into moonhouse
put (trunc(mercuryhouse / 30) + 1) into mercuryhouse
put (trunc(venushouse / 30) + 1) into venushouse
put (trunc(marshouse / 30) + 1) into marshouse
put (trunc(jupiterhouse / 30) + 1) into jupiterhouse
put (trunc(saturnhouse / 30) + 1) into saturnhouse
put (trunc(uranushouse / 30) + 1) into uranushouse
put (trunc(neptunehouse / 30) + 1) into neptunehouse
put (trunc(plutohouse / 30) + 1) into plutohouse
put 1 into linecount
repeat with x = 1 to 12
put item 2 of line x of card field id 3 into lowplanet
repeat with y = 1 to 12
put item 2 of line y of card field id 4 into hiplanet
if hiplanet < lowplanet then add 360 to hiplanet
put hiplanet - lowplanet into aspect
if aspect <= 1 or aspect >= 359 and aspect <= 361 then
put item 1 of line y of card field id 4 && "(p) conjunct " & item 1 of line x of card field id 3 && "(n)" into line linecount of card field fieldcount of card id 11820
if aspect <= .5 or aspect >= 359.5 and aspect <= 360.5
then put item 1 of line y of card field id 4 && "(p) conjunct " & item 1 of line x of card field id 3 && "(n) *" into line linecount of card field fieldcount of card id 11820
add 1 to linecount
end if
if aspect >= 179 and aspect <= 181 then
put item 1 of line y of card field id 4 && "(p) oppose " & item 1 of line x of card field id 3 && "(n)" into line linecount of card field fieldcount of card id 11820
if aspect >= 179.5 or aspect <= 180.5
then put item 1 of line y of card field id 4 && "(p) oppose " & item 1 of line x of card field id 3 && "(n) *" into line linecount of card field fieldcount of card id 11820
add 1 to linecount
end if
if aspect >= 89 and aspect <= 91 or aspect >= 269 and aspect <= 271 then
put item 1 of line y of card field id 4 && "(p) square " & item 1 of line x of card field id 3 && "(n)" into line linecount of card field fieldcount of card id 11820
if aspect >= 89.5 and aspect <= 90.5 or aspect >= 269.5 and aspect <= 270.5
then put item 1 of line y of card field id 4 && "(p) square " & item 1 of line x of card field id 3 && "(n) *" into line linecount of card field fieldcount of card id 11820
add 1 to linecount
end if
if aspect >= 119 and aspect <= 121 or aspect >= 239 and aspect <= 241
then
put item 1 of line y of card field id 4 && "(p) trine " & item 1 of line x of card field id 3 && "(n)" into line linecount of card field fieldcount of card id 11820
if aspect >= 119.5 and aspect <= 120.5 or aspect >= 239.5 and aspect <= 240.5
then put item 1 of line y of card field id 4 && "(p) trine " & item 1 of line x of card field id 3 && "(n) *" into line linecount of card field fieldcount of card id 11820
add 1 to linecount
end if
if aspect >= 59 and aspect <= 61 or aspect >= 299 and aspect <= 301
then
put item 1 of line y of card field id 4 && "(p) sextile " & item 1 of line x of card field id 3 && "(n)" into line linecount of card field fieldcount of card id 11820
if aspect >= 59.5 and aspect <= 60.5 or aspect >= 299.5 and aspect <= 300.5
then put item 1 of line y of card field id 4 && "(p) sextile " & item 1 of line x of card field id 3 && "(n) *" into line linecount of card field fieldcount of card id 11820
add 1 to linecount
end if
if aspect >= 149 and aspect <= 151 or aspect >= 209 and aspect <= 211
then
put item 1 of line y of card field id 4 && "(p) quincunx " & item 1 of line x of card field id 3 && "(n)" into line linecount of card field fieldcount of card id 11820
if aspect >= 149.5 and aspect <= 150.5 or aspect >= 209.5 and aspect <= 210.5
then put item 1 of line y of card field id 4 && "(p) quincunx " & item 1 of line x of card field id 3 && "(n) *" into line linecount of card field fieldcount of card id 11820
add 1 to linecount
end if
end repeat
end repeat
put the number of lines in card field fieldcount of card id 11820 into linecount
put " *** HOUSES ***" into line linecount + 2 of card field fieldcount of card id 11820
put "Sun in " & sunhouse & ", Moon in " & moonhouse & ", Mercury in " & mercuryhouse & ", Venus in " & venushouse & ", Mars in " & marshouse & ", Jupiter in " & jupiterhouse & ", Saturn in " & saturnhouse & ", Uranus in " & uranushouse & ", Neptune in " & neptunehouse & ", Pluto in " & plutohouse & "." into line linecount + 3 of card field fieldcount of card id 11820